package com.lingdian.fund.service;

import java.util.List;

import com.lingdian.fund.bean.Fund;
import com.lingdian.fund.bean.FundData;

public interface SpiderDataService {

	String url = "http://fund.fund123.cn/HistoryNV/NetValueHistoryTable.aspx?code=${code}&startdate=${startdate}&enddate=${enddate}";
	public String spiderHtml(String code,String startDate,String endDate);
	
	public List<FundData> parseData(String html);
	
	public void saveData(FundData data);
	
	public void asyncSaveData(List<Fund> funddataList,String enddate);
	public void threadUpdateAll();
	
	public List<Object[]> findByMaxUnitValue(String fundate);
	public void updateOne(String code,String startDate,String endDate);
}
